#!/usr/bin/env python3
"""Example import configuration."""

# Insert our custom importers path here.
# (In practice you might just change your PYTHONPATH environment.)
import sys
from os import path
sys.path.insert(0, path.join(path.dirname(__file__)))

from importers import utrade
from importers import acme_pdf

from beancount.ingest import extract
from beancount.ingest.importers import ofx


# Setting this variable provides a list of importer instances.
CONFIG = [
    utrade.Importer("USD",
                    "Assets:US:UTrade",
                    "Assets:US:UTrade:Cash",
                    "Income:US:UTrade:{}:Dividend",
                    "Income:US:UTrade:{}:Gains",
                    "Expenses:Financial:Fees",
                    "Assets:US:BofA:Checking"),

    ofx.Importer("379700001111222",
                 "Liabilities:US:CreditCard",
                 "bofa"),

    acme_pdf.Importer("Assets:US:AcmeBank"),
]


# Override the header on extracted text (if desired).
extract.HEADER = ';; -*- mode: org; mode: beancount; coding: utf-8; -*-\n'
